package 算法;

/**
 * @author coderFu
 * @create 2022/3/15
 */
public class test {

    public static void main(String[] args) {
        //
        String s = "abc";

        String substring = s.substring(0, 0);
        System.out.println(s.substring(0,1));
        System.out.println(s.substring(1,s.length()));
        System.out.println(substring);
    }
}
